package org.example.completed.service.impl;

import org.example.completed.domain.Active;
import org.example.completed.mapper.ActiveMapper;
import org.example.completed.service.ActiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActiveServiceImpl implements ActiveService {
    private ActiveMapper ActiveMapper;

    @Autowired
    public ActiveServiceImpl(ActiveMapper activeMapper) {
        this.ActiveMapper = activeMapper;
    }

    @Override
    public List<Active> getAllActive() {
        // 调用 getAllActive 获取所有活动
        return ActiveMapper.getAllActive();
    }
}
